﻿using System;
using System.Configuration;

namespace EP.Base.BaseService.Manager.Config
{
    public class EsMaintainTaskConfig
    {
        /// <summary>
        /// 运行任务线程数
        /// </summary>
        public static int RunTaskThreadNum
        {
            get { return Convert.ToInt32(ConfigurationManager.AppSettings["RunTaskThreadNum"]); }
        }
        /// <summary>
        /// 任务计划
        /// </summary>
        public static string TaskSchedule 
        {
            get { return ConfigurationManager.AppSettings["TaskSchedule"]; }
        }
        /// <summary>
        /// 任务自动监控服务实现名
        /// </summary>
        /// <returns></returns>
        public static string TaskAutoMonitorService
        {
             get { return ConfigurationManager.AppSettings["TaskAutoMonitorService"]; }
        }
        /// <summary>
        /// 任务变化监控计划
        /// </summary>
        public static string TaskConfigChangeMonitorCron
        {
            get { return ConfigurationManager.AppSettings["TaskConfigChangeMonitorCron"]; }
        }
    }
}
